<?php
/**
 * 奖品的添加与修改
 * User: Administrator
 * Date: 2019\2\12 0012
 * Time: 18:43
 */

namespace app\Lib\InterfaceIn\Present;


use app\Lib\InterfaceIn\Img\Img;
use app\Lib\InterfaceIn\User\UserHandle;

interface OperationPresent
{
    /**
     * 中奖概率
     * @param $probabilityNum
     * @return $this
     */
    public function  setProbabilityNum($probabilityNum);

    /**
     * 奖品类型
     * @param $presentType
     * @return $this
     */
    public function  setPresentType($presentType);

    /**
     * 奖品名称
     * @param $presentName
     * @return $this
     */
    public function  setPresentName($presentName);

    /**
     * 奖品图片
     * @param Img $presentImgId
     * @return $this
     */
    public function  setPresentImgId( Img $presentImgId);

    /**
     * 奖品数量
     * @param $presentNum
     * @return $this
     */
    public function  setPresentNum($presentNum);

    /**
     * 操作人
     * @param UserHandle $opUser
     * @return $this
     */
    public function  setOpUser(UserHandle $opUser);

    /**
     * 修改对象
     * @param Present $present
     * @return $this
     */
    public function  setPresent(Present $present);

    /**
     * 执行
     * @return bool
     */
    public function run();



}